package com.example.demo.service;

import com.example.demo.entity.Commentinfo;
import com.example.demo.mapper.CommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-04-08
 * Time:21:52
 */
@Service
public class CommentService {
    @Autowired
    private CommentMapper commentMapper;

    public int makeComment(Commentinfo commentinfo) {
        return commentMapper.makeComment(commentinfo);
    }

    public List<Commentinfo> queryComments(Commentinfo commentinfo) {
        return commentMapper.queryComments(commentinfo);
    }
}
